package com.bocai.freeman.net;


import com.bocai.freeman.model.bean.BaseBean;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by admin on 2016/1/9.
 */
public interface Api {

    /**
     * 获取验证码
     */
    @FormUrlEncoded
    @POST(Url.OBTAINCODEURL)
    Observable<BaseBean> obtainCode(
            @Field("content") String content);

    /**
     * 用户注册
     */
    @POST(Url.REGISTERURL)
    @FormUrlEncoded
    Observable<BaseBean> register(
            @Field("content") String content);

    /**
     * 用户登录
     */
    @POST(Url.LOGINURL)
    @FormUrlEncoded
    Observable<BaseBean> login(
            @Field("content") String content);

    /**
     * 忘记密码
     */
    @POST(Url.FORGETPWDURL)
    @FormUrlEncoded
    Observable<BaseBean> forgetPwd(
            @Field("content") String content);

}
